//
//@File    :	4.23_mixtypes.cpp
//@Time    :	2021/08/04 17:20:09
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	some type combinations
//

#include <iostream>

struct antarctica_years_end
{
    int year; 
};

int main()
{
    using namespace std;
    antarctica_years_end s01,s02,s03;
    s01.year = 1998;
    antarctica_years_end *pa = &s02;
    pa->year = 1999;
    antarctica_years_end trio[3];
    trio[0].year = 2003;
    cout<<trio->year<<endl;
    const antarctica_years_end *arp[3] = {&s01,&s02,&s03};
    cout<<arp[1]->year<<endl;
    const antarctica_years_end **ppa = arp;
    auto ppb = arp;
    cout<<(*ppa)->year<<endl;
    cout<<(*(ppb+1))->year<<endl;
    system("pause");
    return 0;
}